package cn.growthgate.fgo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 从者羁绊
 * </p>
 *
 * @author GrowthGate
 * @since 2019-05-28
 */
@TableName("t_data_servant_bond")
public class ServantBond extends Model<ServantBond> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 从者id
     */
    private Long servantId;

    /**
     * 等级
     */
    private Integer level;

    /**
     * 值
     */
    private Integer value;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getServantId() {
        return servantId;
    }

    public void setServantId(Long servantId) {
        this.servantId = servantId;
    }
    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }
    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ServantBond{" +
        "id=" + id +
        ", servantId=" + servantId +
        ", level=" + level +
        ", value=" + value +
        "}";
    }
}
